const express = require("express");
const logger = require("morgan");
const bodyParser = require("body-parser");
const indexRouter = require("./router/index");
const tableRouter = require("./router/table");
const loginRouter = require("./router/login");
const app = express();
app.use(logger("dev"));
app.use(express.static(__dirname + "/view"));
app.use(bodyParser.urlencoded({ extended: false }));
app.use(bodyParser.json());
app.use("/index", indexRouter);
app.use("/table", tableRouter);
app.use("/login", loginRouter);
app.listen(8888, () => console.log("hello express is running"));
